INTERFACE="../Interface"
ANE="./all.ane"

SWC="$INTERFACE/bin/Interface.swc"
EXT="$INTERFACE/src/extension.xml"

unzip $SWC -d .

adt -package -target ane $ANE $EXT -swc $SWC -platform Android-ARM library.swf androidinfo.jar -platform QNX-ARM library.swf libBlackberryInfo-arm.so -platform iPhone-ARM library.swf libinfoext.a -platformoptions ../Interface/src/ios-options.xml -platform iPhone-x86 library.swf libinfoextsim.a

cp $ANE ../../Binary/all.ane
rm -f library.swf
rm -f catalog.xml
rm -f all.ane